package com.echat.serviceapigateway.security.mapper;

import com.echat.serviceapigateway.security.model.authorization.Resource;
import com.echat.serviceapigateway.security.model.authorization.vo.ResourceVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by chenmohan on 2018/08/31
 *
 * @description
 */
public interface ResourceMapper extends Mapper<Resource> {

    List<ResourceVo> selectResourceVosByCondition(@Param("r") Resource resource);

    ResourceVo selectResourceVosById(@Param("id") Long id);
}
